package com.zerui.manager.device.convertor;

import com.zerui.manager.device.Device;
import com.zerui.manager.device.entity.DeviceDo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@Mapper
public interface DeviceConvert {

	DeviceConvert INSTANCE = Mappers.getMapper(DeviceConvert.class);

	List<Device> convertDeviceDosToDevices(List<DeviceDo> deviceDos);

	Device convertDeviceDoToDevice(DeviceDo deviceDo);

	DeviceDo convertDeviceToDeviceDo(Device device);
}
